package com.glsc.ngateway.common.base.repo.mysql.gateway.platform;


import com.glsc.ngateway.common.base.domain.mysql.gateway.platform.gitee.GiteeSyncLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GiteeSyncLogRepo extends JpaRepository<GiteeSyncLog, Long>, JpaSpecificationExecutor<GiteeSyncLog> {

    List<GiteeSyncLog> findAllByProcessIdAndTaskDefKey(String rqId, String taskDefKey);

    List<GiteeSyncLog> findAllByProcessDefKeyAndTaskDefKeyAndStatusNotIn(String demandManagement, String arrangeTask, List<String> status);

    List<GiteeSyncLog> findAllByProcessIdAndGiteeIssueType(String proId, String type);
}
